classdef DeviceSetting < handle
    %DEVICESETTING Summary of this class goes here
    %   Detailed explanation goes here
    
    properties
        setting
    end
    
    methods (Static)
        function obj = getSetting()
            persistent localObj;
            if isempty(localObj) || ~isvalid(localObj)
                localObj = NMRGyroscope.DeviceController.DeviceSetting();
            end
            obj = localObj;
        end
    end
    
    %%
    methods        
        function change(obj, val)
            obj.setting = val;
        end
        
        function val = read(obj)
            val = obj.setting;
        end
    end
    
    %%
    methods (Access = private)
        function obj = DeviceSetting()
            %DEVICESETTING Construct an instance of this class
            %   Detailed explanation goes here
            
        end
    end
end

